-- GENERATED SPELL FOR [Shadowsword Fury Mage] --


function spell0_25799(pUnit, Event) --@Fel Fireball,n/a--
pUnit:FullCastSpellOnTarget(46101,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25799', 2000, 1)
end

function spell1_25799(pUnit, Event) --@Spell Fury,Self--
pUnit:FullCastSpellOnTarget(46102,pUnit)
pUnit:RegisterEvent('Sorts_25799', 30311, 1)
end

function Sorts_25799(pUnit, Event)
local choix_sorts_25799 = math.random(0, 1)
if choix_sorts_25799 == 0 then
pUnit:RegisterEvent('spell0_25799', 1, 1)
end
if choix_sorts_25799 == 1 then
pUnit:RegisterEvent('spell1_25799', 1, 1)
end
end

function mob25799_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25799', math.random(1500, 3000), 1)
end

function mob25799_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25799_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25799_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25799, 1, 'mob25799_Action')
RegisterUnitEvent(25799, 2, 'mob25799_Leave')
RegisterUnitEvent(25799, 3, 'mob25799_Kill')
RegisterUnitEvent(25799, 4, 'mob25799_Die')
